package cn.kgc.springday08.service.impl;

import cn.kgc.springday08.mapper.UserRoleMapper;
import cn.kgc.springday08.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/6/21
 * @Description:
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public Integer deleteByUId(Integer id) {
        Integer integer = userRoleMapper.deleteByUId(id);
        String str = null;
        str.toString();
        return integer;
    }
}
